Skip to content

Conversation

@vBLFTePebWNi6c
Copy link
Contributor

The login command now properly handles CredentialsNotFoundError exceptions during credential validation. Previously, when no credentials existed, the validation would fail and prevent users from logging in.

uv run ccproxy auth login
             Claude OAuth Login
 
2025-08-29 20:30:19 [debug    ] credentials_file_not_found     path=/Users/user/.config/ccproxy/credentials.json
     error   Error during login: 

This change adds specific exception handling to allow the login process to proceed when no credentials are found.

Additionally, the CredentialsManager.validate() method now raises CredentialsNotFoundError with a descriptive error message instead of returning an invalid ValidationResult when no credentials exist. This provides better error handling consistency across the codebase.

Comprehensive tests have been added to verify the new behavior, including scenarios with no existing credentials, existing valid credentials, and various error conditions.

The login command now properly handles CredentialsNotFoundError exceptions during credential validation. Previously, when no credentials existed, the validation would fail and prevent users from logging in. This change adds specific exception handling to allow the login process to proceed when no credentials are found.

Additionally, the CredentialsManager.validate() method now raises CredentialsNotFoundError with a descriptive error message instead of returning an invalid ValidationResult when no credentials exist. This provides better error handling consistency across the codebase.

Comprehensive tests have been added to verify the new behavior, including scenarios with no existing credentials, existing valid credentials, and various error conditions.
Copy link
Owner

@CaddyGlow CaddyGlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your patience! The merge will happen. FYI, I'll be releasing v0.2 soon. This version will be plugin-based, making it much easier to add new providers in the future.

@CaddyGlow CaddyGlow merged commit a3107c2 into CaddyGlow:main Sep 4, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants